<?php
require_once($classes_path.'/class.simplepie.inc');
$feed = new Simplepie('http://api.flickr.com/services/feeds/photos_public.gne?id=7563379@N04&lang=en-us&format=rss_200');
$feed->handle_content_type();
include($includes_path.'/getFlickr.inc.php');
?>

<div class="album-wrapper">
    <?php foreach ($feed->get_items() as $item): ?>
    <div class="photo">
            <?php
            if ($enclosure = $item->get_enclosure()) {
            // print('<h2>' . $enclosure->get_title() . '</h2>'."\n");
                $img = image_from_description($item->get_description());
                $full_url = select_image($img, 3);
                $thumb_url = select_image($img, 0);
                print('<a href="'.$full_url.'" rel="lightbox" title="'.$enclosure->get_title().'"><img src="'.$thumb_url.'" title="'.$enclosure->get_title().'" alt="'.$enclosure->get_title().'" /></a>'."\n");
            }
            ?>
        <p><small><?php echo $item->get_date('M jS Y'); ?></small></p>
    </div>
    <?php endforeach; ?>
</div>